package com.lagou.edu.service;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author zjy
 */
@FeignClient(value = "lagou-service-email")
@RequestMapping("/email")
public interface EmailFeignClient {


    /**
     * 调用邮件微服务发送验证码
     * @param email
     * @param code
     * @return
     */
    @GetMapping("/{email}/{code}")
    Boolean sendEmail(@PathVariable("email")String  email,@PathVariable("code")String code);

}
